package com.siashan.toolkit.core.wrapper;

import com.siashan.toolkit.core.enums.IBaseEnum;

/**
 * 接口请求子状态
 *
 * @author siashan
 * @version V1.0.1
 */
public enum SubCode implements IBaseEnum<Integer> {

    /**
     * 默认状态
     */
    DEFAULT(0,""),

    ;

    private int code;
    private String desp;

    SubCode(int code, String desp) {
        this.code = code;
        this.desp = desp;
    }

    /**
     * 获取枚举的code属性值
     *
     * @return 枚举的code属性值
     */
    @Override
    public Integer getCode() {
        return code;
    }

    /**
     * 获取枚举描述
     *
     * @return 枚举的desp属性值
     */
    @Override
    public String getDesp() {
        return desp;
    }

}
